﻿using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace iMobileS.Models.Partial
{
    public class Categories
    {
        private int _CategoryID;

        private string _CategoryName;

        private string _Description;

        private Binary _Picture;

        public Categories()
        {
        }

        [Column(Storage = "_CategoryID", DbType = "Int NOT NULL")]
        public int CategoryID
        {
            get
            {
                return this._CategoryID;
            }
            set
            {
                if ((this._CategoryID != value))
                {
                    this._CategoryID = value;
                }
            }
        }

        [Column(Storage = "_CategoryName", DbType = "NVarChar(15) NOT NULL", CanBeNull = false)]
        public string CategoryName
        {
            get
            {
                return this._CategoryName;
            }
            set
            {
                if ((this._CategoryName != value))
                {
                    this._CategoryName = value;
                }
            }
        }

        [Column(Storage = "_Description", DbType = "NText", UpdateCheck = UpdateCheck.Never)]
        public string Description
        {
            get
            {
                return this._Description;
            }
            set
            {
                if ((this._Description != value))
                {
                    this._Description = value;
                }
            }
        }
    }
}